#include "addgadialog.h"
#include "ui_addgadialog.h"

addGADialog::addGADialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::addGADialog)
{
    ui->setupUi(this);
    
    ui->lineEdit->setText("新建群组地址");
    connect(ui->cancelBtn, SIGNAL(clicked(bool)), this, SLOT(close()));
}

addGADialog::~addGADialog()
{
    delete ui;
}

void addGADialog::on_OKBtn_clicked()
{
    if(!ui->lineEdit->text().isEmpty())
        this->GAName = ui->lineEdit->text();    
    this->GABeginValue = ui->beginSpinBox->value();
    this->GANum = ui->countSpinBox->value();
    this->accept();
}
